package com.chance.cc.crawler.development.scripts.allfeild;

import com.chance.cc.crawler.core.CrawlerEnum;
import com.chance.cc.crawler.core.script.ScriptContext;
import com.chance.cc.crawler.core.script.crawler.DomainExecuteScript;

/**
 * @author lt
 * @version 1.0
 * @date 2020-11-19 17:54:07
 * @email okprog@sina.com
 */
public class AICCommonField implements DomainExecuteScript {

    public static String Field_Title = "title";//标题
    public static String Field_Author = "author";//作者名
    public static String Field_Author_Id = "author_id";//作者id
    public static String Field_Author_Fans = "author_fans";//作者粉丝数
    public static String Field_Content = "content";//内容
    public static String Field_Source = "source";//资料
    public static String Field_Images = "images";//图片
    public static String Field_Audios = "audios";//音频
    public static String Field_Urls = "urls";//链接
    public static String Field_Path = "path";   //页面地址层级 ，为 list 结构
    public static String Field_Floor = "floor";   //页面楼层
    public static String Field_Reply_Floor = "reply_floor";   //引用楼层
    public static String Field_Post_Plished_Number = "post_published_number";//发帖数
    public static String Field_Attention_Number = "attention_number";//作者关注数

    public static String Field_I_Forwards = "forwards"; //转发
    public static String Field_I_Views = "views"; //浏览量
    public static String Field_I_Comments = "comments"; //回复数
    public static String Field_I_Likes = "likes"; //点赞数
    public static String Field_I_Dislikes = "dislikes"; //踩
    public static String Field_I_Collection = "collection"; //收藏
    public static String Field_I_Bullet_Chat="bullet_chat";//视频弹幕数
    public static String Field_I_Coin_Operated="coin_operated";//投币

    //for appStore
    public static String Field_Score = "score";//评分
    public static String Field_Equipment = "equipment";//设备

    //for produce
    public static String Field_Produce_Price = "produce_price";//商品价格

    //for baidu_index
    public static String Field_Index_Value = "index_value";//指数值
    public static String Field_Index_Terminal_Type = "index_terminal_type";//终端类型

    //for online retailers
    public static String Field_Original_Price = "original_price";//商品原价（参考价）
    public static String Field_Present_Price = "present_price";//商品现价（活动价）
    public static String Field_Commodity_Discount = "commodity_discount";//商品是否打折（true：是-现价低于原价；false：无-现价不低于原价）

    public static String Tag_Field_Keword = "keyword";
    public static String Tag_Field_Domain_Result_Json = "domain_result_json";//初始record结果字段
    public static String Tag_field_Clean_Up_Keys = "clean_up_local_keys";//初始清空本地keys字段

    public static String Tag_Field_ECommerce_List_Content = "e_commerce_list_content"; //电商列表页内容

    public static final String Tag_Site_Info = "site_info";//板块信息说明 按板块采集添加此biz标签区分数据

    @Override
    public String domain() {
        return "static-filed-domain";
    }

    @Override
    public CrawlerEnum.CrawlerScriptType scriptType() {
        return CrawlerEnum.CrawlerScriptType.crawler;
    }

    @Override
    public void initScript() {

    }

    @Override
    public boolean isExecute(ScriptContext context) {
        return false;
    }

    @Override
    public void beforeExecute(ScriptContext context) {

    }

    @Override
    public void execute(ScriptContext context) throws Exception {

    }

    @Override
    public void afterExecute(ScriptContext context) {

    }

    @Override
    public boolean hasException(ScriptContext context, Throwable exception) {
        return false;
    }
}
